
import 'package:flutter/material.dart';

/*
* 商品的详情
*/
class GoodDetailPage extends StatefulWidget {

  final int id;

  GoodDetailPage({Key key,this.id}) : super(key: key);

  @override
  _GoodDetailPageState createState() => _GoodDetailPageState();
}

class _GoodDetailPageState extends State<GoodDetailPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("商品详情"),centerTitle: true,),
      body: Container(
          child: Text("接收到的ID值 ${widget.id}"),
        )
    );
  }
}